package com.xiehua.task.client.handler;

import com.xiehua.task.intf.AbsBusinessHandler;
import com.xiehua.task.msg.BroadcastBody;
import com.xiehua.task.protocol.TaskPacket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.core.ChannelContext;

public class BroadcastHandler extends AbsBusinessHandler<BroadcastBody> {

    private static Logger log = LoggerFactory.getLogger(BroadcastHandler.class);


    public BroadcastHandler() {

    }

    @Override
    public Class<BroadcastBody> bodyClass() {
        return BroadcastBody.class;
    }

    @Override
    public Object handler(TaskPacket packet, BroadcastBody bsBody, ChannelContext channelContext) throws Exception {
        log.info("收到登录响应消息:{}", bsBody.getMsg());
        return null;
    }
}
